import { createSlice } from "@reduxjs/toolkit";

/* 持久化collapsedStore */
const collapsedStore = createSlice({
    name: 'collapsed',
    initialState:{
        collapsed: false
    },
    reducers: {
        changeCollapsed(state, action) {
           state.collapsed = action.payload
        }
    }
})

export const { changeCollapsed } = collapsedStore.actions
const collapsedReducer = collapsedStore.reducer
export default collapsedReducer